package com.yaohe.consumer.widget;

import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Environment;
import android.widget.RemoteViews;
import android.widget.Toast;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;

import com.yaohe.consumer.R;

public class IconManager {

	private Context context;

	public IconManager(Context paramContext) {
		this.context = paramContext;
	}
	
	public void setRemoteViews(RemoteViews rv, boolean switchStatus){
		if(switchStatus){
			rv.setImageViewResource(R.id.ivSwitcher, R.drawable.shake_on);
		}else{
			rv.setImageViewResource(R.id.ivSwitcher, R.drawable.shake_off);
		}
	}
}
